package com.huaxin.device.mapping;

import com.huaxin.device.dto.request.DeviceReadingCircuitBreakerCreateReqDTO;
import com.huaxin.device.dto.request.DeviceReadingCircuitBreakerUpdateReqDTO;
import com.huaxin.device.models.DeviceReadingCircuitBreaker;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

@Mapper(componentModel = "spring")
public interface DeviceReadingCircuitBreakerMapping {

    DeviceReadingCircuitBreaker toEntity(DeviceReadingCircuitBreakerCreateReqDTO in);

    void updateEntity(DeviceReadingCircuitBreakerUpdateReqDTO in, @MappingTarget DeviceReadingCircuitBreaker entity);
}